home *** CD-ROM | disk | FTP | other *** search
- #import <objc/Object.h>
- #import <appkit/graphics.h>
-
- #define MAX_X_SPEED 50
- #define MAX_Y_SPEED 30
-
- #define LEFT 0x01
- #define RIGHT 0x02
- #define UP 0x04
- #define DOWN 0x08
-
- @interface FishBrain:Object
- {
- id body;
- float WIDTH;
- float HEIGHT;
- float xpos;
- float xspeed;
- float ypos;
- float yspeed;
- float angle;
- int direction;
- NXSize sizeOfAquar;
-
- }
-
- -init:(NXSize *)drawingSize fishSize:(NXSize *)mysize owner:mybody;
- -(float)getXSpeed;
- -(float)getYSpeed;
- -(float)getXPos;
- -(float)getYPos;
- -(NXPoint)getCurrentPoint;
- -(float)getAngle;
- -(int)getDirection;
- -viewDidResize:(NXSize *)newSize;
- - changeXDirection;
- - changeYDirection;
- @end
-